package com.sample.client.kt

import com.sample.client.repo.BaseRepoImpl
import retrofit2.Call

class HttpRepository : BaseRepoImpl<HttpKtServer>() {

    override fun serverClass(): Class<HttpKtServer> {
        return HttpKtServer::class.java
    }

    suspend fun request(url: String): String? {
        return repoServer?.request(url)
    }

    suspend fun test(paramMap: Map<String, String?>?): Call<String?>? {
        return repoServer?.test(paramMap)
    }

    suspend fun callRequest(url: String): Call<String?>? {
        return repoServer?.callRequest(url)
    }
}